/*
 * @ : Copyright (c) 2021 Phytium Information Technology, Inc. 
 *  
 * SPDX-License-Identifier: Apache-2.0.
 * 
 * @Date: 2021-09-01 16:06:03
 * @LastEditTime: 2021-09-01 17:31:08
 * @Description:  This files is for 
 * 
 * @Modify History: 
 *  Ver   Who        Date         Changes
 * ----- ------     --------    --------------------------------------
 */
#ifndef ELFTOOL_H
#define ELFTOOL_H

#include <string>
#include <vector>

typedef struct
{
    unsigned char file_class;
    unsigned char encoding;
    unsigned char os_abi;
    unsigned char elf_type;
    unsigned char machine_type;
    unsigned long entry_addr;
} ElfParseInfo;

int ElfIoParse(std::string &elf_file, ElfParseInfo &info);
int ElfIoMerge(std::string &master_elf, std::vector<std::string> &input_elfs, std::string &output_elf);

#endif // ELFIO_DUMP_HPP